import Router from 'uni-simple-router'
import Vue from 'vue'
import modules from './modules'

Vue.use(Router)
// 初始化
const router = new Router({
  routes: [...modules] // 路由表
})

// 全局路由前置守卫
router.beforeEach((to, from, next) => {
  // console.log(to)
  next()
})
// 全局路由后置守卫
// eslint-disable-next-line no-unused-vars
router.afterEach((to, from) => {

})
export default router
